package com.client.controller;

import com.client.view.ChatFrame;

import java.util.HashMap;

/**
 * @author lxl
 * @date 2020/12/26 - 15:14
 */
/*
管理用户聊天界面的类
 */
public class ChatFrameManager {
    private static HashMap map = new HashMap<String, ChatFrame>();
    //
    public static void addQqChat(String loginIdAndFriendId, ChatFrame chatFrame){
        map.put(loginIdAndFriendId, chatFrame);
    }
    public static ChatFrame getQqChat(String loginIdAndFriendId){
        return (ChatFrame)map.get(loginIdAndFriendId);
    }
    public static void remove(String loginIdAndFriendId){
        map.remove(loginIdAndFriendId);
    }
}
